#ifndef _PWM_H_
#define _PWM_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>

enum pwm_ch{
    LED = 3,
    TUO = 4,
    BENG = 5
};
int open_pwm(int tim_ch);
int close_pwm(int tim_ch);
int pwm_config(int tim_ch, const char *attr, const char *val);
void led_control(int flag);
void tuo_control(int flag);
void beng_control(int flag, int freq);
#ifdef __cplusplus
}
#endif
#endif
